package xin.mashibo.pattern.factorymethod;

/**
 * 身份证类
 *
 * @author MaShibo
 * 日期 :  2019/1/22
 */
public class IDCard extends Product {

    private String owner;

    public IDCard(String owner) {
        System.out.println("制作 " + owner + " 的ID卡。");
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println("使用 " + owner + " 的ID卡。");
    }

    public String getOwner() {
        return owner;
    }
}
